package com.arpa.ntocc.common.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 用户类型枚举
 *
 * @program: ntocc
 * @Date: 2019-08-16 08:21
 * @Author: LEO
 * @Description:
 */
public enum PartyTypeEnum  {

    /**
     * 用户类型枚举
     */
    SUPER_ADMIN("SUPER_ADMIN", "超级管理员"),
    PLAT_ADMIN("PLAT_ADMIN", "平台管理员"),
    GROUP("GROUP", "组织"),
    GROUP_ADMIN("GROUP_ADMIN", "管理员"),
    USER("USER", "操作员"),
    DRIVER("DRIVER", "司机"),
    DRIVER_LEADER("DRIVER_LEADER", "车队长"),
    SHIPMENT("SHIPMENT", "入驻商"),
    SHIPMENT_COMPANY("SHIPMENT_COMPANY", "发货企业"),
    STAFF("STAFF", "员工");

    /**
     * 值
     */
    @EnumValue
    private final String value;

    /**
     * 描述
     */
    private final String desc;

    PartyTypeEnum(final String value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue(){
        return this.value;
    }



    @Override
    public String toString(){
        return desc;
    }
}
